Categories

Versions

Invert Image (Image Processing)

Synopsis

Inverts an image.

Description

Inverting an image means inverting the pixel values.

Images are represented using RGB or Red Green Blue values. Each can take up an integer value between 0 and 255 (both included). For example, a red color is represent using (255, 0, 0), white with (255, 255, 255), black with (0, 0, 0) and so on. Inverting an image means reversing the colors on the image. For example, the inverted color for red color will be (0, 255, 255). Note that 0 became 255 and 255 became 0. This means that inverting an image is essentially subtracting the old RGB values from 255.

Input

  • image

    The image object to invert

Output

  • image

    The inverted image.

  • ori

    The original image.

Parameters

    Tutorial Processes